package com.example.intermingle.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName polling
 */
@TableName(value ="polling")
public class Polling implements Serializable {
    /**
     * 轮询文本id
     */
    private String pollingid;

    /**
     * 轮询文本内容
     */
    private String pollingtext;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 轮询文本id
     */
    public String getPollingid() {
        return pollingid;
    }

    /**
     * 轮询文本id
     */
    public void setPollingid(String pollingid) {
        this.pollingid = pollingid;
    }

    /**
     * 轮询文本内容
     */
    public String getPollingtext() {
        return pollingtext;
    }

    /**
     * 轮询文本内容
     */
    public void setPollingtext(String pollingtext) {
        this.pollingtext = pollingtext;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Polling other = (Polling) that;
        return (this.getPollingid() == null ? other.getPollingid() == null : this.getPollingid().equals(other.getPollingid()))
            && (this.getPollingtext() == null ? other.getPollingtext() == null : this.getPollingtext().equals(other.getPollingtext()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPollingid() == null) ? 0 : getPollingid().hashCode());
        result = prime * result + ((getPollingtext() == null) ? 0 : getPollingtext().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pollingid=").append(pollingid);
        sb.append(", pollingtext=").append(pollingtext);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}